package com.wwg;

/**
 * 模拟客户端实现
 */
public class SunnyTest {

    public static void main(String[] args) {
	// write your code here
    //    HairFactory factory = new HairFactory();
//        HairInterface left = factory.getHair("left");
//        left.draw();

//        HairInterface left  = factory.getHairByClass("com.wwg.RightHair");
//        left.draw();

//        HairInterface hair  = factory.getHairByClassKey("in");
//        hair.draw();

        PersonFactory factory = new MCFactory();
        Girl girl = factory.getGirl();
        girl.drawWomen();
    }

}